import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询风险隐患上报全部
export const riskHazardList = data => {
    return $get('/risk/riskHazard/list', data)
}

// 查询风险隐患上报列表
export const riskHazardPage = data => {
    return $get('/risk/riskHazard/page', data)
}

// 新增风险隐患上报
export const riskHazardAdd = data => {
    return $post('/risk/riskHazard/add', data)
}

// 查询风险隐患上报详情
export const riskHazardDetail = id => {
    return $get('/risk/riskHazard/detail/'+ id)
}

// 更新风险隐患上报
export const riskHazardUpdate = data => {
    return $post('/risk/riskHazard/update', data)
}

// 风险隐患处置
export const riskHazardHandle = data => {
  return $post('/risk/riskHazard/handle', data)
}

// 删除风险隐患上报
export const riskHazardDelete = id => {
    return $post('/risk/riskHazard/delete/'+ id)
}

// 风险隐患督办
export const orderPush = data => {
  return $post('/collect/sgSupervise/orderPush', data)
}

// 导出风险隐患上报
export const riskHazardExport = (data,fileName) => {
    return $download('/risk/riskHazard/export',data, fileName)
}

// 运行监测统计分析-风险管理统计分析-风险趋势统计分析
export const riskHazardCountStatistics = data => {

  return $get('/risk/riskHazard/riskHazardCountStatistics', data)
}


// 运行监测统计分析-风险管理统计分析-城市风险排行
export const riskHazardCityStatistics = data => {
  return $get('/risk/riskHazard/riskHazardCityStatistics', data)
}

// 运行监测统计分析-风险管理统计分析-风险类别分布
export const riskHazardBclassifyStatistics = data => {
  return $get('/risk/riskHazard/riskHazardBclassifyStatistics', data)
}

// 运行监测统计分析-风险管理统计分析-风险等级汇总
export const riskHazardGradeStatistics = data => {
  return $get('/risk/riskHazard/riskHazardGradeStatistics', data)
}

// 运行监测统计分析-风险管理统计分析-风险统计信息
export const riskHazardInfoStatistics = data => {
  return $get('/risk/riskHazard/riskHazardInfoStatistics', data)
}

// 运行监测统计分析-风险管理统计分析-风险统计信息导出Excel
export const riskHazardInfoStatisticsExport = (data,fileName) => {
  return $download('/risk/riskHazard/riskHazardInfoStatisticsExport',data, fileName)
}

// 运行监测统计分析-风险管理统计分析-风险统计信息(新)
export const riskHazardInfoStatisticsNew = data => {
  return $get('/risk/riskHazard/riskHazardInfoStatisticsNew', data)
}

// 运行监测统计分析-风险管理统计分析-风险统计信息导出Excel（新）
export const riskHazardInfoStatisticsExportNew = (data,fileName) => {
  return $download('/risk/riskHazard/riskHazardInfoStatisticsExportNew',data, fileName)
}

// 地市-隐患统计分析-排查任务趋势
export const riskHazardCvHazardTaskTrend = data => {
  return $get('/risk/riskHazard/cv/hazardTaskTrend', data)
}

// 地市-隐患统计分析-排查任务进度
export const riskHazardCvHazardTaskProgress = data => {
  return $get('/risk/riskHazard/cv/hazardTaskProgress', data)
}

// 地市-隐患统计分析-排查任务统计
export const riskHazardCvHazardTaskStatistics = data => {
  return $get('/risk/riskHazard/cv/hazardTaskStatistics', data)
}


